hysop.parameters.buffer_parameter module

class hysop.parameters.buffer_parameter.BufferParameter(shape=None, dtype=<class 'numpy.float64'>, initial_value=None, symbol=None, **kwds)[source]

Bases: Parameter

A buffer parameter is np.ndarray with specific shape and dtype. A parameter is a value that may change as simulation advances.

Initialize a TaggedObject with a tag prefix/postfix/formatter, all optional.

property ctype

Get the data type of the discrete field as a C type.

property dtype

Get parameter dtype.

iterviews()[source]

Iterate over all parameters views to yield scalarparameters.

long_description()[source]

Return a long description of this parameter as a string.

property ndim

Get parameter ndim.

reallocate_buffer(shape, dtype, initial_value=None, symbol=None)[source]
property shape

Get parameter shape.

short_description()[source]

Return a short description of this parameter as a string.

property size

Get parameter size.